package com.tianyu.inspection.common.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**********************************
 * @Author YSW
 * @Description 可配置变量
 * @Date 2020.12.17 - 14:48
 **********************************/

@Configuration
public class AppConstants {

	@Value("${server.port}")
	public String port;

	@Value("${spring.application.name}")
	public String applicationName;

	@Value("${spring.redis.host}")
	public String redisHost;

	@Value("${spring.redis.password}")
	public String redisPassword;

	@Value("${spring.redis.port}")
	public Integer redisPort;

	@Value("${spring.redis.timeout}")
	public String redisTimeout;

	@Value("${spring.redis.database}")
	public Integer redisDatabase;

	@Value("${constants.tcp.websocket.port}")
	public Integer tcpWebsocketPort;

	@Value("${constants.cloudPlatform.host}")
	public String cloudPlatformHttpHost;

	@Value("${constants.cloudPlatform.tcpServerHost}")
	public String cloudPlatformTcpServerHost;

	@Value("${constants.cloudPlatform.tcpServerPort}")
	public Integer cloudPlatformTcpServerPort;

	@Value("${constants.yuKong.host}")
	public String yuKongHttpHost;

	@Value("${constants.yuKong.tcpServerHost}")
	public String yuKongTcpServerHost;

	@Value("${constants.yuKong.tcpServerPort}")
	public Integer yuKongTcpServerPort;

	@Value("${constants.redis.ocsGroupPut}")
	public String redisOcsGroupPut;

	@Value("${constants.redis.ocsGroupPutProgress}")
	public String redisOcsGroupPutProgress;

	@Value("${constants.redis.userAccess}")
	public String redisUserKey;

	@Value("${constants.redis.liveVideo}")
	public String redisLiveVideo;

	@Value("${constants.redis.pipeline}")
	public String redisPipeline;

	@Value("${constants.redis.telemetry}")
	public String redisTelemetry;

	@Value("${constants.redis.fileAnalyse}")
	public String redisFileAnalyse;

	@Value("${constants.cos.domain}")
	public String cosDomain;

	@Value("${constants.default.user-logo}")
	public String defaultUserLogo;

	@Value("${constants.default.client-logo}")
	public String defaultClientLogo;

	@Value("${constants.client-path.win}")
	public String winClientPath;

	@Value("${constants.client-path.android}")
	public String androidClientPath;

	@PostConstruct
	private void init(){

	}
}
